<?php
namespace app\common\model;
class Video extends Base
{
    protected function initialize()
    {
        parent::initialize();
    }

    /* 用户对该视频的购买状态 */
    public static function payStatus ($uid,$videoId) {
        $payLog = VideoPay::getOne([
            'uid' => $uid,
            'video_id' => $videoId,
            'status' => 1
        ]);
        if($payLog) {
            return 1;
        }
        return 0;
    }
}